package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-备件管理-备件信息
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_part_info")
@ApiModel(value = "ErpPartInfo对象", description = "ERP系统-备件管理-备件信息")
public class ErpPartInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联型号")
    private Integer modelId;

    @ApiModelProperty("封面图片")
    private String pic;

    @ApiModelProperty("备件名称")
    private String name;

    @ApiModelProperty("SKU编码，与库存模块对应")
    private String sku;

    @ApiModelProperty("所属分类")
    private Integer categoryId;

    @ApiModelProperty("规格")
    private String standard;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("预估单价")
    private BigDecimal price;

    @ApiModelProperty("是否质保件")
    private Integer isWarranty;

    @ApiModelProperty("质保年限")
    private Integer warrantyYears;

    @ApiModelProperty("质保标准")
    private String warrantyStandard;

    @ApiModelProperty("是否可用")
    private Integer isEnabled;

    @ApiModelProperty("是否删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建用户ID")
    private Integer createUser;

    @ApiModelProperty("创建用户姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
